export const ADDRESS_TYPE = {
  CONSIGNEE: 1,
  SHIPPER: 2,
  PICK_UP: 3,
};

export const TRANSPORT_TYPE = {
  EXPRESS: 2,
  AIR: 1,
};

export const PRODUCT_TYPE = {
  AIR: 1,
  EXPRESS: 2,
  CROSS: 3,
};

export const AUTH_STATUS = {
  APPLIED: 0,
  AUTHORIZED: 1,
};

export const REGION_TYPE = {
  BILLING: 1,
  DISPATCH: 2,
  PRODUCT: 3,
  SERVICE: 4,
};

export const REGION_ADDRESS_TYPE = {
  AREA: 1,
  POSTCODE: 2,
  AIR_PORT: 3,
  AIR_LINE: 4,
};

export const SERVICE_STATUS = {
  DRAFT: 0,
  WAIT_AUDIT: 1,
  AUDITTED: 2,
  REVOCATION: 3,
};

export const WAREHOUSE_OWNER_TYPE = {
  SELF: 0,
  SUPPLIER: 1,
};

export const NUMBER_RULE = {
  MIN_LENGTH: 0,
  MAX_LENGTH: 10,
  MAX_TOTAL_LENGTH: 30,
  VALID_TYPE_NAME: {
    SEQUENCE: '数字序列',
    FIXED_CHARACTER: '固定字符',
    DATE: '日期',
  },
  TYPE: {
    SEQUENCE: 'SEQUENCE',
    FIXED_CHARACTER: 'FIXED_CHARACTER',
    DATE: 'DATE',
    INVALID_TYPE: 'INVALID_TYPE',
  },
  CHECKBIT: {
    MOD_10: 'MOD_10',
    MOD_7: 'MOD_7',
    NO_CHECKBIT: 'no_checkbit',
  },
  VALID_CHECKBIT_TYPE: ['MOD_10', 'MOD_7', 'no_checkbit'],
  AUDIT_STATUS: ['未使用', '已使用'],
  BIND_TYPE: {
    PRODUCT_GROUP: {
      ID: 1,
      NAME: '产品组',
    },
    PRODUCT: {
      ID: 2,
      NAME: '产品',
    },
    SERVICE: {
      ID: 3,
      NAME: '服务',
    },
  },
  NUMBER_TYPE: {
    WAYBILL_NUMBER: 1,
    BAG_NUMBER: 2,
    BOARD_NUMBER: 3,
  },
};

export const FORM_LAYOUT = {
  FORM_ITEM_LAYOUT: {
    labelCol: {
      xs: { span: 24 },
      sm: { span: 24 },
      md: { span: 8 },
    },
    wrapperCol: {
      xs: { span: 24 },
      sm: { span: 24 },
      md: { span: 16 },
    },
  },
  FORM_ITEM_LAYOUT_WITH_TIME: {
    labelCol: {
      xs: { span: 24 },
      sm: { span: 24 },
      md: { span: 6 },
    },
    wrapperCol: {
      xs: { span: 24 },
      sm: { span: 24 },
      md: { span: 18 },
    },
  },
  FORM_ITEM_LAYOUT_SMALL: {
    labelCol: {
      xs: { span: 24 },
      sm: { span: 24 },
      md: { span: 4 },
    },
    wrapperCol: {
      xs: { span: 24 },
      sm: { span: 24 },
      md: { span: 20 },
    },
  },
  BUTTON_ITEM_LAYOUT: {
    wrapperCol: { span: 24 },
  },
};

export const MUNICIPALITY = [
  //直辖市
  '110000', //北京
  '120000', //天津
  '310000', //上海
  '500000', //重庆
];

export const APPROVE_STATU = {
  0 : '草稿',
  1 : '提交审核',
  2 : '已审核'
};

export const SHOP_STATU = {
  0: '关闭',
  1: '开启'
}

export const ORDER_STATER = {
  /**
   * 已退款
   */
  REFUNDED: 0,

  /**
   * 待支付
   */
  SUBMIT: 10,
  /**
   * 已支付
   */
  PAYED: 20,

  /**
   * 已收款
   */
  RECEIPTED: 30,

  /**
   * 已确认
   */
  CONFIRMED: 40,

  /**
   * 已开票
   */
  INVOICED: 50,

  /**
   * 已完税
   */
  TAXED: 90,
};

export const INSURANCE_STATE = {
  /**
 * 新保单
 */
NEW: 0,
  /**
 * 保障中
 */
ING: 2,
  /**
 * 已过期
 */
END: 3,
  /**
 * 已取消
 */
CANCEL: 4
}

export const MEMBER_LEVEL = {
  /**
 * 黑羽
 */
BLACK: 1,
  /**
 * 蓝羽
 */
BLUE: 2,
  /**
 * 金羽
 */
GOLDEN: 3,
}



export const MAX_INSURANCE_VALUE = 3000000;
